<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Sticky Footer Navbar Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="/zswebshop/include/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/zswebshop/include/css/sticky-footer-navbar.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/zswebshop/include/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- <script type="text/javascript" src="<?php echo JS_DIR?>/common.js"></script> -->
	<script type="text/javascript" src="<?php echo JS_DIR?>/jquery-1.11.2.js"></script>
	<!-- <script type="text/javascript" src="<?php echo JS_DIR?>/jquery-ui-1.7.2.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo JS_DIR?>/jquery.framedialog.js"></script>
	<script type="text/javascript" src="<?php echo JS_DIR?>/jquery.jScale.js"></script>
	<script type="text/javascript" src="<?php echo JS_DIR?>/jquery.post.js"></script> -->
     <script>
		$(document).ready(function(){
			$("#mainsearch_btn").click(function(){
				if($("#mainq").val() == ''){
					alert('검색어를 입력하세요');
					return false;
				} else {

					//var act = '/search/index/q/'+$("#mainq").val();
					//	alert(act);
					//$("#main_search").attr('action', act).submit();

					var act = '/zswebshop/index.php/search/index/q/'+$("#mainq").val();
					document.formTest.action = act;
					document.formTest.submit();
				}
			});
		});

		function top_search_enter(form) {
		    var keycode = window.event.keyCode;
		    if(keycode == 13) $("#mainsearch_btn").click();
		}
	</script>
  </head>

  <body>

    <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/zswebshop/index.php/helloworld">zswebshop</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu" role="menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->

        <div id="navbar" class="collapse navbar-collapse">
         	<ul class="nav navbar-nav">
          	 <li>
				<!-- //통합검색 기능추가 by paku -->
				<form id="main_search" method="get" action="Search" name='formTest' onsubmit="javascript:return false;" >
					<input name="mainq" id="mainq" class="searchfield" value="" onkeypress="top_search_enter(document.mainq);">
					<input type="submit" id="mainsearch_btn" value="검색" class="searchbutton">
				</form>
			</li>
			</ul>
		</div>
      </div>
    </nav>
    <div class="container">
